package com.xyy.saas.payment.cores.enums;

public enum  SeparateSummaryStatusEnum {

    CREATE(0,"创建中"),
    IN_SEPARATE(1,"转账中"),
    SEPARATE_SUCCESS(2,"转账成功"),
    SEPARATE_FAIL(4,"转账失败");

    private int status;
    private String desc;

    SeparateSummaryStatusEnum(int status, String desc){
        this.status = status;
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByStatus(int status) {
        for(SeparateSummaryStatusEnum separateEnum : SeparateSummaryStatusEnum.values()) {
            if(separateEnum.getStatus() == status) {
                return separateEnum.getDesc();
            }
        }
        return "";
    }
}
